package com.yonyou.pmclouds.enterprise.rmiitf;

import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.enterprise.entity.EnterpriseVO;

/**
 * @Author chulf
 * @Date 2020/4/13
 * @Description
 **/
public interface EnterpriseMaintain {

    EnterpriseVO saveEnterpriseVO(EnterpriseVO enterpriseVOS) throws BusinessException;

    /**
     *  普通的企业信息更改 不牵扯组织信息更改
     * @param enterpriseVO
     * @throws BusinessException
     */
    void updateEnterprise(EnterpriseVO enterpriseVO) throws BusinessException;

    void deleteEnterpriseVOS(EnterpriseVO[] enterpriseVOS) throws BusinessException;

    EnterpriseVO addEnterpriseByOrg(String pkOrg) throws BusinessException;

    EnterpriseVO[] insertEnterprises(EnterpriseVO[] enterpriseVOS) throws BusinessException;

    EnterpriseVO[] insertEnterprisesByTeam(EnterpriseVO[] enterpriseVOS) throws BusinessException;
}
